package cn.b504.qpcr.exception;

/**
 * 仪器未找到异常类
 *
 * @author ssc
 */
public class DeviceNotFoundException extends Exception {
  public DeviceNotFoundException() {
  }

  public DeviceNotFoundException(String message) {
    super(message);
  }

  public DeviceNotFoundException(String message, Throwable cause) {
    super(message, cause);
  }

  public DeviceNotFoundException(Throwable cause) {
    super(cause);
  }

  public DeviceNotFoundException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
    super(message, cause, enableSuppression, writableStackTrace);
  }

  public DeviceNotFoundException(String port, String reason) {
    super("Connect Port: " + port + ((reason == null)
        ? ""
        : " (" + reason + ")"));
  }
}
